Optimal. Leaf size=626 \[ -\frac {2 \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \cot (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 a^3 b^2 \sqrt {a+b} \left (a^2-b^2\right )^2 d}+\frac {2 \left (36 a^2 A b^3-5 a A b^4-15 A b^5+3 a^5 C+a^3 b^2 (13 A+5 C)-3 a^4 b (15 A+8 C)\right ) \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 a^3 b \sqrt {a+b} \left (a^2-b^2\right )^2 d}-\frac {2 A \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{a^4 d}+\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{5 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{5/2}}-\frac {2 \left (5 A b^4-3 a^4 C-a^2 b^2 (13 A+5 C)\right ) \tan (c+d x)}{15 a^2 \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \tan (c+d x)}{15 a^3 \left (a^2-b^2\right )^3 d \sqrt {a+b \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.91, antiderivative size = 626, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {4146, 4145,
4143, 4006, 3869, 3917, 4089} \begin {gather*} -\frac {2 A \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a^4 d}+\frac {2 \left (a^2 C+A b^2\right ) \tan (c+d x)}{5 a d \left (a^2-b^2\right ) (a+b \sec (c+d x))^{5/2}}-\frac {2 \left (-3 a^4 C-a^2 b^2 (13 A+5 C)+5 A b^4\right ) \tan (c+d x)}{15 a^2 d \left (a^2-b^2\right )^2 (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (-3 a^6 C-29 a^4 b^2 (2 A+C)+41 a^2 A b^4-15 A b^6\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 a^3 b^2 d \sqrt {a+b} \left (a^2-b^2\right )^2}-\frac {2 \left (-3 a^6 C-29 a^4 b^2 (2 A+C)+41 a^2 A b^4-15 A b^6\right ) \tan (c+d x)}{15 a^3 d \left (a^2-b^2\right )^3 \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (3 a^5 C-3 a^4 b (15 A+8 C)+a^3 b^2 (13 A+5 C)+36 a^2 A b^3-5 a A b^4-15 A b^5\right ) \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{15 a^3 b d \sqrt {a+b} \left (a^2-b^2\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3869
Rule 3917
Rule 4006
Rule 4089
Rule 4143
Rule 4145
Rule 4146
Rubi steps
\begin {align*} \int \frac {A+C \sec ^2(c+d x)}{(a+b \sec (c+d x))^{7/2}} \, dx &=\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{5 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{5/2}}-\frac {2 \int \frac {-\frac {5}{2} A \left (a^2-b^2\right )+\frac {5}{2} a b (A+C) \sec (c+d x)-\frac {3}{2} \left (A b^2+a^2 C\right ) \sec ^2(c+d x)}{(a+b \sec (c+d x))^{5/2}} \, dx}{5 a \left (a^2-b^2\right )}\\ &=\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{5 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{5/2}}-\frac {2 \left (5 A b^4-3 a^4 C-a^2 b^2 (13 A+5 C)\right ) \tan (c+d x)}{15 a^2 \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^{3/2}}+\frac {4 \int \frac {\frac {15}{4} A \left (a^2-b^2\right )^2+\frac {3}{2} a b \left (A b^2-a^2 (5 A+4 C)\right ) \sec (c+d x)-\frac {1}{4} \left (5 A b^4-3 a^4 C-a^2 b^2 (13 A+5 C)\right ) \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx}{15 a^2 \left (a^2-b^2\right )^2}\\ &=\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{5 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{5/2}}-\frac {2 \left (5 A b^4-3 a^4 C-a^2 b^2 (13 A+5 C)\right ) \tan (c+d x)}{15 a^2 \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \tan (c+d x)}{15 a^3 \left (a^2-b^2\right )^3 d \sqrt {a+b \sec (c+d x)}}-\frac {8 \int \frac {-\frac {15}{8} A \left (a^2-b^2\right )^3+\frac {1}{8} a b \left (10 A b^4-a^2 b^2 (23 A-5 C)+9 a^4 (5 A+3 C)\right ) \sec (c+d x)-\frac {1}{8} \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \sec ^2(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{15 a^3 \left (a^2-b^2\right )^3}\\ &=\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{5 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{5/2}}-\frac {2 \left (5 A b^4-3 a^4 C-a^2 b^2 (13 A+5 C)\right ) \tan (c+d x)}{15 a^2 \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \tan (c+d x)}{15 a^3 \left (a^2-b^2\right )^3 d \sqrt {a+b \sec (c+d x)}}-\frac {8 \int \frac {-\frac {15}{8} A \left (a^2-b^2\right )^3+\left (\frac {1}{8} \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right )+\frac {1}{8} a b \left (10 A b^4-a^2 b^2 (23 A-5 C)+9 a^4 (5 A+3 C)\right )\right ) \sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{15 a^3 \left (a^2-b^2\right )^3}+\frac {\left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \int \frac {\sec (c+d x) (1+\sec (c+d x))}{\sqrt {a+b \sec (c+d x)}} \, dx}{15 a^3 \left (a^2-b^2\right )^3}\\ &=-\frac {2 \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 a^3 (a-b)^2 b^2 (a+b)^{5/2} d}+\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{5 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{5/2}}-\frac {2 \left (5 A b^4-3 a^4 C-a^2 b^2 (13 A+5 C)\right ) \tan (c+d x)}{15 a^2 \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \tan (c+d x)}{15 a^3 \left (a^2-b^2\right )^3 d \sqrt {a+b \sec (c+d x)}}+\frac {A \int \frac {1}{\sqrt {a+b \sec (c+d x)}} \, dx}{a^3}+\frac {\left (36 a^2 A b^3-5 a A b^4-15 A b^5+3 a^5 C+a^3 b^2 (13 A+5 C)-3 a^4 b (15 A+8 C)\right ) \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{15 a^3 (a-b)^2 (a+b)^3}\\ &=-\frac {2 \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \cot (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 a^3 (a-b)^2 b^2 (a+b)^{5/2} d}+\frac {2 \left (36 a^2 A b^3-5 a A b^4-15 A b^5+3 a^5 C+a^3 b^2 (13 A+5 C)-3 a^4 b (15 A+8 C)\right ) \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{15 a^3 (a-b)^2 b (a+b)^{5/2} d}-\frac {2 A \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{a^4 d}+\frac {2 \left (A b^2+a^2 C\right ) \tan (c+d x)}{5 a \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{5/2}}-\frac {2 \left (5 A b^4-3 a^4 C-a^2 b^2 (13 A+5 C)\right ) \tan (c+d x)}{15 a^2 \left (a^2-b^2\right )^2 d (a+b \sec (c+d x))^{3/2}}-\frac {2 \left (41 a^2 A b^4-15 A b^6-3 a^6 C-29 a^4 b^2 (2 A+C)\right ) \tan (c+d x)}{15 a^3 \left (a^2-b^2\right )^3 d \sqrt {a+b \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(2188\) vs. \(2(626)=1252\).
time = 21.86, size = 2188, normalized size = 3.50 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(11804\) vs.
\(2(583)=1166\).
time = 0.38, size = 11805, normalized size = 18.86
method | result | size |
default | \(\text {Expression too large to display}\) | \(11805\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + C \sec ^{2}{\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {7}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{7/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________